/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import DAO.*;
import DTO.*;
import DTO.tasacionGarantiaHipoDTO;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.swing.JOptionPane;



public class ModificacionTasacionGarantia extends javax.swing.JFrame {

    usuarioDTO user;
    String auxNombre = "";
    garantiasDAO reg = new garantiasDAO();
    tasacionGarantiaHipoDTO tasaHipo = new tasacionGarantiaHipoDTO();
    tasacionGarantiaAutoDTO tasaAuto;
    tasacionGarantiaCdpDTO tasaCdp;
    tasacionGarantiaWarraDTO tasaWarra;
    
    public ModificacionTasacionGarantia(usuarioDTO user) {
        this.user = user;
        initComponents();
        this.chkHipoModTasa.setSelected(true);
        jPanel3.setVisible(false);
        jPanel4.setVisible(false);
        jPanel5.setVisible(false);
        this.btnActualizarModTasa.setVisible(false);
        this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        lblLogo = new javax.swing.JLabel();
        lblIngresoGaraAuto = new javax.swing.JLabel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel10 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        txtHipoModTasa = new javax.swing.JTextField();
        btnHipoModTASA = new javax.swing.JButton();
        chkHipoModTasa = new javax.swing.JCheckBox();
        jPanel3 = new javax.swing.JPanel();
        btnAutoModTasa = new javax.swing.JButton();
        txtAutoModTasa = new javax.swing.JTextField();
        chkAutoModTasa = new javax.swing.JCheckBox();
        chkWarraModTasa = new javax.swing.JCheckBox();
        jPanel4 = new javax.swing.JPanel();
        txtWarraModTasa = new javax.swing.JTextField();
        btnWarraModTasa = new javax.swing.JButton();
        jPanel5 = new javax.swing.JPanel();
        txtCDPModiTasa = new javax.swing.JTextField();
        btnCDPModTasa = new javax.swing.JButton();
        chkCDPModTasa = new javax.swing.JCheckBox();
        pnlDatosPersoGara1 = new javax.swing.JPanel();
        jPanel8 = new javax.swing.JPanel();
        jLabel36 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        jLabel40 = new javax.swing.JLabel();
        txtNombreModTasa = new javax.swing.JTextField();
        txtApellMatModTasa = new javax.swing.JTextField();
        txtApellPatModTasa = new javax.swing.JTextField();
        txtRutModTasa = new javax.swing.JTextField();
        btnMenuPrincipal = new javax.swing.JButton();
        jPanel12 = new javax.swing.JPanel();
        jPanel6 = new javax.swing.JPanel();
        pnlDescripGarantia = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        txtOtroComentarioModTasa = new javax.swing.JTextArea();
        jScrollPane4 = new javax.swing.JScrollPane();
        txtDescripcionModTasa = new javax.swing.JTextArea();
        lblDescripcion = new javax.swing.JLabel();
        jPanel13 = new javax.swing.JPanel();
        btnActualizarModTasa = new javax.swing.JButton();
        jPanel9 = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        txtMontoResModTasa = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        txtNomTasaModTasa = new javax.swing.JTextField();
        txtMontoCubModTasa = new javax.swing.JTextField();
        txtValorComModTasa = new javax.swing.JTextField();
        txtValoLiqModSeg = new javax.swing.JTextField();
        txtAvaluoModSeg = new javax.swing.JTextField();
        txtValorModiTasa = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        txtValorContModSeg = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        txtApPaternoTasa = new javax.swing.JTextField();
        txtApMaternoTasa = new javax.swing.JTextField();
        txtFechaUltimaTasacion = new javax.swing.JTextField();
        jButton1 = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("MODIFICACIÓN TASACIÓN GARANTÍA");
        setResizable(false);

        lblLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE/logo.JPG"))); // NOI18N

        lblIngresoGaraAuto.setFont(new java.awt.Font("Century Gothic", 1, 18)); // NOI18N
        lblIngresoGaraAuto.setText("MODIFICACIÓN TASACIÓN GARANTÍA");

        jTabbedPane1.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE ROL SII", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        txtHipoModTasa.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                txtHipoModTasaMouseClicked(evt);
            }
        });

        btnHipoModTASA.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnHipoModTASA.setText("BUSCAR");
        btnHipoModTASA.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnHipoModTASAActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtHipoModTasa)
                    .addComponent(btnHipoModTASA, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(txtHipoModTasa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnHipoModTASA))
        );

        buttonGroup1.add(chkHipoModTasa);
        chkHipoModTasa.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkHipoModTasa.setText("HIPOTECARIA");
        chkHipoModTasa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkHipoModTasaActionPerformed(evt);
            }
        });

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE PATENTE", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        btnAutoModTasa.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnAutoModTasa.setText("BUSCAR");
        btnAutoModTasa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAutoModTasaActionPerformed(evt);
            }
        });

        txtAutoModTasa.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                txtAutoModTasaMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(btnAutoModTasa, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)
                    .addComponent(txtAutoModTasa))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addComponent(txtAutoModTasa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnAutoModTasa, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        buttonGroup1.add(chkAutoModTasa);
        chkAutoModTasa.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkAutoModTasa.setText("AUTOMOTRIZ");
        chkAutoModTasa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkAutoModTasaActionPerformed(evt);
            }
        });

        buttonGroup1.add(chkWarraModTasa);
        chkWarraModTasa.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkWarraModTasa.setText("WARRANT");
        chkWarraModTasa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkWarraModTasaActionPerformed(evt);
            }
        });

        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE CÓDIGO ÚNICO (D.U.N 14)", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        txtWarraModTasa.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                txtWarraModTasaMouseClicked(evt);
            }
        });

        btnWarraModTasa.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnWarraModTasa.setText("BUSCAR");
        btnWarraModTasa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnWarraModTasaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtWarraModTasa)
                    .addComponent(btnWarraModTasa, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(67, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(txtWarraModTasa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnWarraModTasa))
        );

        jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INGRESE NUMERO", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        txtCDPModiTasa.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                txtCDPModiTasaMouseClicked(evt);
            }
        });

        btnCDPModTasa.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnCDPModTasa.setText("BUSCAR");
        btnCDPModTasa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCDPModTasaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtCDPModiTasa)
                    .addComponent(btnCDPModTasa, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(txtCDPModiTasa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnCDPModTasa))
        );

        buttonGroup1.add(chkCDPModTasa);
        chkCDPModTasa.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        chkCDPModTasa.setText("CDP");
        chkCDPModTasa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkCDPModTasaActionPerformed(evt);
            }
        });

        pnlDatosPersoGara1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DATOS PERSONALES GARANTE", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel36.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel36.setText("RUT");

        jLabel37.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel37.setText("APELLIDO PATERNO");

        jLabel39.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel39.setText("APELLIDO MATERNO");

        jLabel40.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel40.setText("NOMBRE");

        txtNombreModTasa.setBackground(new java.awt.Color(255, 255, 102));
        txtNombreModTasa.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtNombreModTasa.setEnabled(false);

        txtApellMatModTasa.setBackground(new java.awt.Color(255, 255, 102));
        txtApellMatModTasa.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtApellMatModTasa.setEnabled(false);

        txtApellPatModTasa.setBackground(new java.awt.Color(255, 255, 102));
        txtApellPatModTasa.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtApellPatModTasa.setEnabled(false);

        txtRutModTasa.setBackground(new java.awt.Color(255, 255, 102));
        txtRutModTasa.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtRutModTasa.setEnabled(false);

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel37)
                    .addComponent(jLabel36))
                .addGap(18, 18, 18)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtRutModTasa, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtApellPatModTasa, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 133, Short.MAX_VALUE)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addComponent(jLabel39)
                        .addGap(18, 18, 18)
                        .addComponent(txtApellMatModTasa, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addComponent(jLabel40)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(txtNombreModTasa, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(196, 196, 196))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel36)
                    .addComponent(txtRutModTasa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel40)
                    .addComponent(txtNombreModTasa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel37)
                    .addComponent(txtApellPatModTasa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel39)
                    .addComponent(txtApellMatModTasa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        javax.swing.GroupLayout pnlDatosPersoGara1Layout = new javax.swing.GroupLayout(pnlDatosPersoGara1);
        pnlDatosPersoGara1.setLayout(pnlDatosPersoGara1Layout);
        pnlDatosPersoGara1Layout.setHorizontalGroup(
            pnlDatosPersoGara1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDatosPersoGara1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        pnlDatosPersoGara1Layout.setVerticalGroup(
            pnlDatosPersoGara1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDatosPersoGara1Layout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        btnMenuPrincipal.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnMenuPrincipal.setText(" MENÚ PRINCIPAL");
        btnMenuPrincipal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMenuPrincipalActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pnlDatosPersoGara1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel10Layout.createSequentialGroup()
                        .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel10Layout.createSequentialGroup()
                                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(chkHipoModTasa)
                                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(30, 30, 30)
                                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(chkAutoModTasa))
                                .addGap(27, 27, 27)
                                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(chkWarraModTasa))
                                .addGap(18, 18, 18)
                                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(chkCDPModTasa)
                                    .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(btnMenuPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(chkWarraModTasa, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(chkAutoModTasa)
                        .addComponent(chkHipoModTasa)
                        .addComponent(chkCDPModTasa)))
                .addGap(18, 18, 18)
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 41, Short.MAX_VALUE)
                .addComponent(pnlDatosPersoGara1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 100, Short.MAX_VALUE)
                .addComponent(btnMenuPrincipal)
                .addGap(65, 65, 65))
        );

        jTabbedPane1.addTab("INFO. GARANTE", jPanel10);

        pnlDescripGarantia.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DESCRIPCIÓN GARANTIA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        txtOtroComentarioModTasa.setColumns(20);
        txtOtroComentarioModTasa.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        txtOtroComentarioModTasa.setRows(5);
        txtOtroComentarioModTasa.setToolTipText("");
        txtOtroComentarioModTasa.setEnabled(false);
        jScrollPane3.setViewportView(txtOtroComentarioModTasa);

        txtDescripcionModTasa.setBackground(new java.awt.Color(255, 255, 102));
        txtDescripcionModTasa.setColumns(20);
        txtDescripcionModTasa.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        txtDescripcionModTasa.setRows(5);
        txtDescripcionModTasa.setDisabledTextColor(new java.awt.Color(0, 0, 204));
        txtDescripcionModTasa.setEnabled(false);
        jScrollPane4.setViewportView(txtDescripcionModTasa);

        lblDescripcion.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        lblDescripcion.setText("DESCRIPCIÓN");

        javax.swing.GroupLayout pnlDescripGarantiaLayout = new javax.swing.GroupLayout(pnlDescripGarantia);
        pnlDescripGarantia.setLayout(pnlDescripGarantiaLayout);
        pnlDescripGarantiaLayout.setHorizontalGroup(
            pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDescripGarantiaLayout.createSequentialGroup()
                .addGap(70, 70, 70)
                .addComponent(lblDescripcion)
                .addGap(18, 18, 18)
                .addGroup(pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 582, Short.MAX_VALUE)
                    .addComponent(jScrollPane3))
                .addContainerGap())
        );
        pnlDescripGarantiaLayout.setVerticalGroup(
            pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDescripGarantiaLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(pnlDescripGarantiaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblDescripcion)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(31, 31, 31)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(250, 250, 250))
        );

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlDescripGarantia, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(pnlDescripGarantia, javax.swing.GroupLayout.PREFERRED_SIZE, 359, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(97, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 855, Short.MAX_VALUE)
            .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel12Layout.createSequentialGroup()
                    .addGap(0, 32, Short.MAX_VALUE)
                    .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 32, Short.MAX_VALUE)))
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 469, Short.MAX_VALUE)
            .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel12Layout.createSequentialGroup()
                    .addGap(0, 1, Short.MAX_VALUE)
                    .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 1, Short.MAX_VALUE)))
        );

        jTabbedPane1.addTab("DESCRIP. GARANTÍA", jPanel12);

        btnActualizarModTasa.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        btnActualizarModTasa.setText("ACTUALIZAR");
        btnActualizarModTasa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnActualizarModTasaActionPerformed(evt);
            }
        });

        jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "MODIFI. TASACIÓN GARANTÍA", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Century Gothic", 1, 10), java.awt.Color.blue)); // NOI18N

        jLabel2.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel2.setText("VALOR CONTABLE");

        jLabel3.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel3.setText("VALOR LIQUIDEZ");

        jLabel4.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel4.setText("VALOR COMERCIAL");

        jLabel5.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel5.setText("MONTO CUBIERTO POR GTÍA.");

        jLabel6.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel6.setText("AVALÚO FISCAL");

        jLabel7.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel7.setText("MONTO RESIDUAL");

        jLabel8.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel8.setText("VALOR EN PESOS");

        jLabel9.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel9.setText("NOMBRE TASADOR");

        txtValorModiTasa.setDisabledTextColor(new java.awt.Color(0, 0, 204));

        jLabel10.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel10.setText("FECHA UTL. TASACIÓN");

        jLabel11.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel11.setText("AP. PATERNO TASADOR");

        jLabel12.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel12.setText("AP. MATERNO TASADOR");

        txtFechaUltimaTasacion.setEditable(false);
        txtFechaUltimaTasacion.setBackground(new java.awt.Color(255, 255, 0));

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel3)
                    .addComponent(jLabel8)
                    .addComponent(jLabel2)
                    .addComponent(jLabel6)
                    .addComponent(jLabel10))
                .addGap(24, 24, 24)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtValorModiTasa, javax.swing.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
                    .addComponent(txtAvaluoModSeg, javax.swing.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
                    .addComponent(txtValoLiqModSeg, javax.swing.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
                    .addComponent(txtValorContModSeg)
                    .addComponent(txtFechaUltimaTasacion))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 111, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(29, 29, 29)
                        .addComponent(jLabel11))
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jLabel12, javax.swing.GroupLayout.Alignment.TRAILING)))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtMontoResModTasa, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtMontoCubModTasa, javax.swing.GroupLayout.DEFAULT_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtValorComModTasa, javax.swing.GroupLayout.DEFAULT_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtNomTasaModTasa)
                    .addComponent(txtApPaternoTasa)
                    .addComponent(txtApMaternoTasa, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(50, 50, 50))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtValorComModTasa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtMontoCubModTasa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel5))
                        .addGap(3, 3, 3)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtMontoResModTasa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel7))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel9)
                            .addComponent(txtNomTasaModTasa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtApPaternoTasa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel11, javax.swing.GroupLayout.Alignment.TRAILING))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel12)
                            .addComponent(txtApMaternoTasa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addContainerGap(156, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel2)
                            .addComponent(txtValorContModSeg, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtValoLiqModSeg, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel3))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtAvaluoModSeg, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtValorModiTasa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel8))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel10)
                            .addComponent(txtFechaUltimaTasacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(170, 170, 170))))
        );

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jButton1.setText("MENÚ PRINCIPAL");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnActualizarModTasa)
                        .addGap(394, 394, 394))
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(jPanel13Layout.createSequentialGroup()
                                .addGap(0, 0, Short.MAX_VALUE)
                                .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap())
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnActualizarModTasa)
                    .addComponent(jButton1))
                .addGap(69, 69, 69))
        );

        jTabbedPane1.addTab("MODIFI. TASACIÓN GARANTÍA", jPanel13);

        jLabel1.setText("MENÚ PRINCIPAL\\MODIFICACIÓN TASACIÓN GARANTÍA");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblLogo)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(114, 114, 114)
                        .addComponent(lblIngresoGaraAuto))
                    .addGroup(layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel1)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addComponent(jTabbedPane1)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblIngresoGaraAuto)
                    .addComponent(lblLogo)
                    .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING))
                .addGap(18, 18, 18)
                .addComponent(jTabbedPane1))
        );

        setSize(new java.awt.Dimension(876, 640));
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void btnMenuPrincipalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMenuPrincipalActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        ModificacionTasacionGarantia.this.dispose();
    }//GEN-LAST:event_btnMenuPrincipalActionPerformed

    private void btnHipoModTASAActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnHipoModTASAActionPerformed
       
        if(this.txtHipoModTasa.getText().equals(""))
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese un Rol");
            this.txtHipoModTasa.setText(null);
            this.txtAutoModTasa.setText(null);
            this.txtWarraModTasa.setText(null);
            this.txtCDPModiTasa.setText(null);
            limpiar2();
        }else{
        tasaHipo = reg.ModiGtabuscarPorRol(this.txtHipoModTasa.getText());
        if(tasaHipo.getId_tasa() == 0)
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Garantia no encontrada");
            this.txtHipoModTasa.setText(null);
            this.txtAutoModTasa.setText(null);
            this.txtWarraModTasa.setText(null);
            this.txtCDPModiTasa.setText(null);
            limpiar2();
            
        }else{
        this.txtRutModTasa.setText(tasaHipo.getHipo().getRut_gara_hipo());
//        this.txtFolioGarModTasa.setText(String.valueOf(tasaHipo.getHipo().getFolio_garantia_hipo()));
        this.txtApellPatModTasa.setText(tasaHipo.getHipo().getApell_paterno_hipo());
        this.txtApellMatModTasa.setText(tasaHipo.getHipo().getApell_materno_hipo());
        this.txtNombreModTasa.setText(tasaHipo.getHipo().getNombre_hipo());
        this.txtDescripcionModTasa.setText(tasaHipo.getHipo().getDescrip_hipo());
        this.txtOtroComentarioModTasa.setText(tasaHipo.getHipo().getComent_hipo());
        this.txtValoLiqModSeg.setText(String.valueOf(tasaHipo.getValor_liquidez_tasa()));
        this.txtValorComModTasa.setText(String.valueOf(tasaHipo.getValor_comercial_tasa()));
        this.txtValorContModSeg.setText(String.valueOf(tasaHipo.getValor_contable_tasa()));
        this.txtValorModiTasa.setText(String.valueOf(tasaHipo.getValor_pesos_tasa()));
        this.txtAvaluoModSeg.setText(String.valueOf(tasaHipo.getAvaluo_fiscal_tasa()));
        this.txtMontoCubModTasa.setText(String.valueOf(tasaHipo.getMonto_cubierto_gara_tasa()));
        this.txtMontoResModTasa.setText(String.valueOf(tasaHipo.getMonto_residual_tasa()));
        this.txtNomTasaModTasa.setText(tasaHipo.getNombre_tasador());
        this.txtApMaternoTasa.setText(tasaHipo.getApellido_materno_tasador());
        this.txtApPaternoTasa.setText(tasaHipo.getApellido_paterno_tasador());
        Date aux = DTO.ConversionFechas.convertToDate(tasaHipo.getHipo().getFech_ult_debito_hipo());
        SimpleDateFormat formate = new SimpleDateFormat("dd/MM/yyyy");        
        this.txtFechaUltimaTasacion.setText(formate.format(aux));
        this.btnActualizarModTasa.setVisible(true);
            this.txtAutoModTasa.setText(null);
            this.txtWarraModTasa.setText(null);
            this.txtCDPModiTasa.setText(null);
  
        auxNombre = "Hipotecaria";
        }
        }
    }//GEN-LAST:event_btnHipoModTASAActionPerformed

    private void btnAutoModTasaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAutoModTasaActionPerformed
       
       if(this.txtAutoModTasa.getText().equals(""))
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese una patente");
            this.txtHipoModTasa.setText(null);
            this.txtAutoModTasa.setText(null);
            this.txtWarraModTasa.setText(null);
            this.txtCDPModiTasa.setText(null);
            limpiar2();
            
        }else{
        tasaAuto = reg.ModiGtaBuscarPorPatente(this.txtAutoModTasa.getText());
        if(tasaAuto.getId_tasa() == 0)
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Garantia no encontrada");
            this.txtHipoModTasa.setText(null);
            this.txtAutoModTasa.setText(null);
            this.txtWarraModTasa.setText(null);
            this.txtCDPModiTasa.setText(null);
            limpiar2();
            
        }else{
        this.txtRutModTasa.setText(tasaAuto.getAuto().getRut_gara_auto());
//        this.txtFolioGarModTasa.setText(String.valueOf(tasaAuto.getAuto().getFolio_garantia_auto()));
        this.txtApellPatModTasa.setText(tasaAuto.getAuto().getApell_paterno_auto());
        this.txtApellMatModTasa.setText(tasaAuto.getAuto().getApell_materno_auto());
        this.txtNombreModTasa.setText(tasaAuto.getAuto().getNombre_auto());
        this.txtDescripcionModTasa.setText(tasaAuto.getAuto().getDescrip_auto());
        this.txtOtroComentarioModTasa.setText(tasaAuto.getAuto().getComent_auto());
        this.txtValoLiqModSeg.setText(String.valueOf(tasaAuto.getValor_liquidez_tasa()));
        this.txtValorComModTasa.setText(String.valueOf(tasaAuto.getValor_comercial_tasa()));
        this.txtValorContModSeg.setText(String.valueOf(tasaAuto.getValor_contable_tasa()));
        this.txtValorModiTasa.setText(String.valueOf(tasaAuto.getValor_pesos_tasa()));
        this.txtAvaluoModSeg.setText(String.valueOf(tasaAuto.getAvaluo_fiscal_tasa()));
        this.txtMontoCubModTasa.setText(String.valueOf(tasaAuto.getMonto_cubierto_gara_tasa()));
        this.txtMontoResModTasa.setText(String.valueOf(tasaAuto.getMonto_residual_tasa()));
        this.txtNomTasaModTasa.setText(tasaAuto.getNombre_tasador());
        this.txtApMaternoTasa.setText(tasaAuto.getApellido_materno_tasador());
        this.txtApPaternoTasa.setText(tasaAuto.getApellido_paterno_tasador());
        Date aux = DTO.ConversionFechas.convertToDate(tasaAuto.getAuto().getFech_ult_debito_auto());
        SimpleDateFormat formate = new SimpleDateFormat("dd/MM/yyyy");        
        this.txtFechaUltimaTasacion.setText(formate.format(aux));
        this.txtHipoModTasa.setText(null);           
        this.txtWarraModTasa.setText(null);
        this.txtCDPModiTasa.setText(null);
        this.btnActualizarModTasa.setVisible(true);
        auxNombre = "Automotriz";
        }
        }               
    }//GEN-LAST:event_btnAutoModTasaActionPerformed

    private void btnWarraModTasaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnWarraModTasaActionPerformed
        
        if(this.txtWarraModTasa.getText().equals(""))
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese un dun");
            this.txtHipoModTasa.setText(null);
            this.txtAutoModTasa.setText(null);
            this.txtWarraModTasa.setText(null);
            this.txtCDPModiTasa.setText(null);
            limpiar2();
            
        }
        else{
        tasaWarra = reg.ModiGtaBuscarPorDUN(this.txtWarraModTasa.getText());
        if(tasaWarra.getId_tasa() == 0)
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Garantia no encontrada");
            this.txtHipoModTasa.setText(null);
            this.txtAutoModTasa.setText(null);
            this.txtWarraModTasa.setText(null);
            this.txtCDPModiTasa.setText(null);
            limpiar2();
            
        }else{
        this.txtRutModTasa.setText(tasaWarra.getWarra().getRut_garante_warra());
//        this.txtFolioGarModTasa.setText(String.valueOf(tasaWarra.getWarra().getFolio_warra()));
        this.txtApellPatModTasa.setText(tasaWarra.getWarra().getApell_paterno_warra());
        this.txtApellMatModTasa.setText(tasaWarra.getWarra().getApell_materno_warra());
        this.txtNombreModTasa.setText(tasaWarra.getWarra().getNombre_warra());
        this.txtDescripcionModTasa.setText(tasaWarra.getWarra().getDescrip_warra());
        this.txtOtroComentarioModTasa.setText(tasaWarra.getWarra().getComent_warra());
        this.txtValoLiqModSeg.setText(String.valueOf(tasaWarra.getValor_liquidez_tasa()));
        this.txtValorComModTasa.setText(String.valueOf(tasaWarra.getValor_comercial_tasa()));
        this.txtValorContModSeg.setText(String.valueOf(tasaWarra.getValor_contable_tasa()));
        this.txtValorModiTasa.setText(String.valueOf(tasaWarra.getValor_pesos_tasa()));
        this.txtAvaluoModSeg.setText(String.valueOf(tasaWarra.getAvaluo_fiscal_tasa()));
        this.txtMontoCubModTasa.setText(String.valueOf(tasaWarra.getMonto_cubierto_gara_tasa()));
        this.txtMontoResModTasa.setText(String.valueOf(tasaWarra.getMonto_residual_tasa()));
        this.txtNomTasaModTasa.setText(tasaWarra.getNombre_tasador());
        this.txtApMaternoTasa.setText(tasaWarra.getApellido_materno_tasador());
        this.txtApPaternoTasa.setText(tasaWarra.getApellido_paterno_tasador());
        Date aux = DTO.ConversionFechas.convertToDate(tasaWarra.getWarra().getFech_ult_deb_warra());
        SimpleDateFormat formate = new SimpleDateFormat("dd/MM/yyyy");        
        this.txtFechaUltimaTasacion.setText(formate.format(aux));
        this.txtHipoModTasa.setText(null);
        this.txtAutoModTasa.setText(null);
        this.txtCDPModiTasa.setText(null);
        this.btnActualizarModTasa.setVisible(true);
        auxNombre = "Warrant";
        }
        }
    }//GEN-LAST:event_btnWarraModTasaActionPerformed

    private void btnCDPModTasaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCDPModTasaActionPerformed
                
        if(this.txtCDPModiTasa.getText().equals(""))
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Ingrese un numero");
            this.txtHipoModTasa.setText(null);
            this.txtAutoModTasa.setText(null);
            this.txtWarraModTasa.setText(null);
            this.txtCDPModiTasa.setText(null);
            limpiar2();
            
        }
        else{
        tasaCdp = reg.ModiGtaBuscarPorNum(Integer.parseInt(this.txtCDPModiTasa.getText()));
        if(tasaCdp.getId_tasa() == 0)
        {
            javax.swing.JOptionPane.showMessageDialog(this, "Garantia no encontrada");
            this.txtHipoModTasa.setText(null);
            this.txtAutoModTasa.setText(null);
            this.txtWarraModTasa.setText(null);
            this.txtCDPModiTasa.setText(null);
            limpiar2();
            
        }else{
        this.txtRutModTasa.setText(tasaCdp.getCdp().getRut_gara_cdp());
//        this.txtFolioGarModTasa.setText(String.valueOf(tasaCdp.getCdp().getFolio_cdp()));
        this.txtApellPatModTasa.setText(tasaCdp.getCdp().getApell_paterno_cdp());
        this.txtApellMatModTasa.setText(tasaCdp.getCdp().getApell_materno_cdp());
        this.txtNombreModTasa.setText(tasaCdp.getCdp().getNombre_cdp());
        this.txtDescripcionModTasa.setText(tasaCdp.getCdp().getDescrip_cdp());
        this.txtOtroComentarioModTasa.setText(tasaCdp.getCdp().getComent_cdp());
        this.txtValoLiqModSeg.setText(String.valueOf(tasaCdp.getValor_liquidez_tasa()));
        this.txtValorComModTasa.setText(String.valueOf(tasaCdp.getValor_comercial_tasa()));
        this.txtValorContModSeg.setText(String.valueOf(tasaCdp.getValor_contable_tasa()));
        this.txtValorModiTasa.setText(String.valueOf(tasaCdp.getValor_pesos_tasa()));
        this.txtAvaluoModSeg.setText(String.valueOf(tasaCdp.getAvaluo_fiscal_tasa()));
        this.txtMontoCubModTasa.setText(String.valueOf(tasaCdp.getMonto_cubierto_gara_tasa()));
        this.txtMontoResModTasa.setText(String.valueOf(tasaCdp.getMonto_residual_tasa()));
        this.txtNomTasaModTasa.setText(tasaCdp.getNombre_tasador());
        this.txtApMaternoTasa.setText(tasaCdp.getApellido_materno_tasador());
        this.txtApPaternoTasa.setText(tasaCdp.getApellido_paterno_tasador());
        Date aux = DTO.ConversionFechas.convertToDate(tasaCdp.getCdp().getFech_ult_deb_cdp());
        SimpleDateFormat formate = new SimpleDateFormat("dd/MM/yyyy");        
        this.txtFechaUltimaTasacion.setText(formate.format(aux));
        this.txtHipoModTasa.setText(null);
        this.txtAutoModTasa.setText(null);
        this.txtWarraModTasa.setText(null);
        this.btnActualizarModTasa.setVisible(true);
        auxNombre = "CDP";
        }
        }
    }//GEN-LAST:event_btnCDPModTasaActionPerformed

    private void txtHipoModTasaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_txtHipoModTasaMouseClicked
        this.txtCDPModiTasa.setText("");
        this.txtAutoModTasa.setText("");
        this.txtWarraModTasa.setText("");
        
    }//GEN-LAST:event_txtHipoModTasaMouseClicked

    private void txtAutoModTasaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_txtAutoModTasaMouseClicked
        this.txtCDPModiTasa.setText("");
        this.txtHipoModTasa.setText("");
        this.txtWarraModTasa.setText("");
    }//GEN-LAST:event_txtAutoModTasaMouseClicked

    private void txtWarraModTasaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_txtWarraModTasaMouseClicked
        this.txtCDPModiTasa.setText("");
        this.txtHipoModTasa.setText("");
        this.txtAutoModTasa.setText("");
    }//GEN-LAST:event_txtWarraModTasaMouseClicked

    private void txtCDPModiTasaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_txtCDPModiTasaMouseClicked
        this.txtWarraModTasa.setText("");
        this.txtHipoModTasa.setText("");
        this.txtAutoModTasa.setText("");
    }//GEN-LAST:event_txtCDPModiTasaMouseClicked

    private void btnActualizarModTasaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnActualizarModTasaActionPerformed
      switch(auxNombre)
        {
            case "Hipotecaria":
                if (!txtValorContModSeg.getText().equals("")) {
                    tasaHipo.setValor_contable_tasa(Integer.parseInt(txtValorContModSeg.getText().trim()));
                }
                if (!txtValoLiqModSeg.getText().equals("")) {
                    tasaHipo.setValor_liquidez_tasa(Integer.parseInt(txtValoLiqModSeg.getText().trim()));
                }
                if (!txtAvaluoModSeg.getText().equals("")) {
                    tasaHipo.setAvaluo_fiscal_tasa(Integer.parseInt(txtAvaluoModSeg.getText().trim()));
                }
                if (!txtValorModiTasa.getText().equals("")) {
                    tasaHipo.setValor_pesos_tasa(Integer.parseInt(txtValorModiTasa.getText().trim()));
                }
                if (!txtValorComModTasa.getText().equals("")) {
                    tasaHipo.setValor_comercial_tasa(Integer.parseInt(txtValorComModTasa.getText().trim()));
                }
                if (!txtMontoCubModTasa.getText().equals("")) {
                    tasaHipo.setMonto_cubierto_gara_tasa(Integer.parseInt(txtMontoCubModTasa.getText().trim()));
                }
                if (!txtMontoResModTasa.getText().equals("")) {
                    tasaHipo.setMonto_residual_tasa(Integer.parseInt(txtMontoResModTasa.getText().trim()));
                }
                if (!txtApMaternoTasa.getText().equals("")) {
                    tasaHipo.setApellido_materno_tasador(txtApMaternoTasa.getText());
                }
                if (!txtApPaternoTasa.getText().equals("")) {
                    tasaHipo.setApellido_paterno_tasador(txtApPaternoTasa.getText());
                }
                if (!txtNomTasaModTasa.getText().equals("")) {
                    tasaHipo.setNombre_tasador(txtNomTasaModTasa.getText());
                }
                int respuesta = javax.swing.JOptionPane.showConfirmDialog(null, "Se grabara la Tasacion de garantia: HIPOTECARIA", "Tasacion", JOptionPane.OK_CANCEL_OPTION);
                if (respuesta == 0) {
                    reg.modificarTasacionHipoPorRoll(tasaHipo);
                    javax.swing.JOptionPane.showMessageDialog(null, "Actualizacion Tasacion Exitosa!");
                    limpiar2();
                   }
                else
                {
                    
                }
                break;
            case "Automotriz":
                if (!txtValorContModSeg.getText().equals("")) {
                    tasaAuto.setValor_contable_tasa(Integer.parseInt(txtValorContModSeg.getText().trim()));
                }
                if (!txtValoLiqModSeg.getText().equals("")) {
                    tasaAuto.setValor_liquidez_tasa(Integer.parseInt(txtValoLiqModSeg.getText().trim()));
                }
                if (!txtAvaluoModSeg.getText().equals("")) {
                    tasaAuto.setAvaluo_fiscal_tasa(Integer.parseInt(txtAvaluoModSeg.getText().trim()));
                }
                if (!txtValorModiTasa.getText().equals("")) {
                    tasaAuto.setValor_pesos_tasa(Integer.parseInt(txtValorModiTasa.getText().trim()));
                }
                if (!txtValorComModTasa.getText().equals("")) {
                    tasaAuto.setValor_comercial_tasa(Integer.parseInt(txtValorComModTasa.getText().trim()));
                }
                if (!txtMontoCubModTasa.getText().equals("")) {
                    tasaAuto.setMonto_cubierto_gara_tasa(Integer.parseInt(txtMontoCubModTasa.getText().trim()));
                }
                if (!txtMontoResModTasa.getText().equals("")) {
                    tasaAuto.setMonto_residual_tasa(Integer.parseInt(txtMontoResModTasa.getText().trim()));
                }
                if (!txtApMaternoTasa.getText().equals("")) {
                    tasaAuto.setApellido_materno_tasador(txtApMaternoTasa.getText());
                }
                if (!txtApPaternoTasa.getText().equals("")) {
                    tasaAuto.setApellido_paterno_tasador(txtApPaternoTasa.getText());
                }
                if (!txtNomTasaModTasa.getText().equals("")) {
                    tasaAuto.setNombre_tasador(txtNomTasaModTasa.getText());
                }
                int respuesta1 = javax.swing.JOptionPane.showConfirmDialog(null, "Se grabara la Tasacion de garantia: AUTOMOTRIZ", "Tasacion", JOptionPane.OK_CANCEL_OPTION);
                if (respuesta1 == 0) {
                    reg.modificarTasacionAutoPorPatente(tasaAuto);
                    javax.swing.JOptionPane.showMessageDialog(null, "Tasacion Auto Exitosa!");
                    limpiar2();
                }
                else
                {
                    
                }
                break;
           case "Warrant":
                
                if (!txtValorContModSeg.getText().equals("")) {
                    tasaWarra.setValor_contable_tasa(Integer.parseInt(txtValorContModSeg.getText().trim()));
                }
                if (!txtValoLiqModSeg.getText().equals("")) {
                    tasaWarra.setValor_liquidez_tasa(Integer.parseInt(txtValoLiqModSeg.getText().trim()));
                }
                if (!txtAvaluoModSeg.getText().equals("")) {
                    tasaWarra.setAvaluo_fiscal_tasa(Integer.parseInt(txtAvaluoModSeg.getText().trim()));
                }
                if (!txtValorModiTasa.getText().equals("")) {
                    tasaWarra.setValor_pesos_tasa(Integer.parseInt(txtValorModiTasa.getText().trim()));
                }
                if (!txtValorComModTasa.getText().equals("")) {
                    tasaWarra.setValor_comercial_tasa(Integer.parseInt(txtValorComModTasa.getText().trim()));
                }
                if (!txtMontoCubModTasa.getText().equals("")) {
                    tasaWarra.setMonto_cubierto_gara_tasa(Integer.parseInt(txtMontoCubModTasa.getText().trim()));
                }
                if (!txtMontoResModTasa.getText().equals("")) {
                    tasaWarra.setMonto_residual_tasa(Integer.parseInt(txtMontoResModTasa.getText().trim()));
                }
                if (!txtApMaternoTasa.getText().equals("")) {
                    tasaWarra.setApellido_materno_tasador(txtApMaternoTasa.getText());
                }
                if (!txtApPaternoTasa.getText().equals("")) {
                    tasaWarra.setApellido_paterno_tasador(txtApPaternoTasa.getText());
                }
                if (!txtNomTasaModTasa.getText().equals("")) {
                    tasaWarra.setNombre_tasador(txtNomTasaModTasa.getText());
                }
                int respuesta2 = javax.swing.JOptionPane.showConfirmDialog(null, "Se grabara la Tasacion de garantia: WARRANT", "Tasacion", JOptionPane.OK_CANCEL_OPTION);
                if (respuesta2 == 0) {
                    reg.modificarTasacionWarraDun(tasaWarra);
                    javax.swing.JOptionPane.showMessageDialog(null, "Tasacion Warra Exitosa!");
                    limpiar2();
                }
                else
                {
                    
                }
                break;     
           case "CDP":
                if (!txtValorContModSeg.getText().equals("")) {
                    tasaCdp.setValor_contable_tasa(Integer.parseInt(txtValorContModSeg.getText().trim()));
                }
                if (!txtValoLiqModSeg.getText().equals("")) {
                    tasaCdp.setValor_liquidez_tasa(Integer.parseInt(txtValoLiqModSeg.getText().trim()));
                }
                if (!txtAvaluoModSeg.getText().equals("")) {
                    tasaCdp.setAvaluo_fiscal_tasa(Integer.parseInt(txtAvaluoModSeg.getText().trim()));
                }
                if (!txtValorModiTasa.getText().equals("")) {
                    tasaCdp.setValor_pesos_tasa(Integer.parseInt(txtValorModiTasa.getText().trim()));
                }
                if (!txtValorComModTasa.getText().equals("")) {
                    tasaCdp.setValor_comercial_tasa(Integer.parseInt(txtValorComModTasa.getText().trim()));
                }
                if (!txtMontoCubModTasa.getText().equals("")) {
                    tasaCdp.setMonto_cubierto_gara_tasa(Integer.parseInt(txtMontoCubModTasa.getText().trim()));
                }
                if (!txtMontoResModTasa.getText().equals("")) {
                    tasaCdp.setMonto_residual_tasa(Integer.parseInt(txtMontoResModTasa.getText().trim()));
                }
                if (!txtApMaternoTasa.getText().equals("")) {
                    tasaCdp.setApellido_materno_tasador(txtApMaternoTasa.getText());
                }
                if (!txtApPaternoTasa.getText().equals("")) {
                    tasaCdp.setApellido_paterno_tasador(txtApPaternoTasa.getText());
                }
                if (!txtNomTasaModTasa.getText().equals("")) {
                    tasaCdp.setNombre_tasador(txtNomTasaModTasa.getText());
                }
                int respuesta3 = javax.swing.JOptionPane.showConfirmDialog(null, "Se grabara la Tasacion de garantia: CDP", "Tasacion", JOptionPane.OK_CANCEL_OPTION);
                if (respuesta3 == 0) {
                    reg.modificarTasacionCDPNum(tasaCdp);
                    javax.swing.JOptionPane.showMessageDialog(null, "Tasacion CDP Exitosa!");
                    limpiar2();
                }
                else
                {
                    
                }
                break;
           case "":
               javax.swing.JOptionPane.showMessageDialog(null, "No funka el switch");
        }
                   
    }//GEN-LAST:event_btnActualizarModTasaActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        MenuPrincipal venMenuPrincipal = new MenuPrincipal(user);
        venMenuPrincipal.setVisible(true);
        ModificacionTasacionGarantia.this.dispose();
    }//GEN-LAST:event_jButton1ActionPerformed

    private void chkHipoModTasaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkHipoModTasaActionPerformed
        if(this.chkHipoModTasa.isSelected())
        {
            jPanel2.setVisible(true);
            jPanel3.setVisible(false);
            jPanel4.setVisible(false);
            jPanel5.setVisible(false);
        }
        
    }//GEN-LAST:event_chkHipoModTasaActionPerformed

    private void chkAutoModTasaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkAutoModTasaActionPerformed
        if(this.chkAutoModTasa.isSelected())
        {
            
            jPanel2.setVisible(false);
            jPanel3.setVisible(true);
            jPanel4.setVisible(false);
            jPanel5.setVisible(false);
        }
    }//GEN-LAST:event_chkAutoModTasaActionPerformed

    private void chkWarraModTasaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkWarraModTasaActionPerformed
        if(this.chkWarraModTasa.isSelected())
        {
            jPanel2.setVisible(false);
            jPanel3.setVisible(false);
            jPanel4.setVisible(true);
            jPanel5.setVisible(false);
        }
    }//GEN-LAST:event_chkWarraModTasaActionPerformed

    private void chkCDPModTasaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkCDPModTasaActionPerformed
        if(this.chkCDPModTasa.isSelected())
        {
            jPanel2.setVisible(false);
            jPanel3.setVisible(false);
            jPanel4.setVisible(false);
            jPanel5.setVisible(true);
        }
    }//GEN-LAST:event_chkCDPModTasaActionPerformed

    /**
     * @param args the command line arguments
     */
//    public static void main(String args[]) {
//        /*
//         * Set the Nimbus look and feel
//         */
//        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
//        /*
//         * If Nimbus (introduced in Java SE 6) is not available, stay with the
//         * default look and feel. For details see
//         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
//         */
//        try {
//            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
//                if ("Nimbus".equals(info.getName())) {
//                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
//                    break;
//                }
//            }
//        } catch (ClassNotFoundException ex) {
//            java.util.logging.Logger.getLogger(ModificacionTasacionGarantia.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (InstantiationException ex) {
//            java.util.logging.Logger.getLogger(ModificacionTasacionGarantia.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (IllegalAccessException ex) {
//            java.util.logging.Logger.getLogger(ModificacionTasacionGarantia.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
//            java.util.logging.Logger.getLogger(ModificacionTasacionGarantia.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        }
//        //</editor-fold>
//
//        /*
//         * Create and display the form
//         */
//        java.awt.EventQueue.invokeLater(new Runnable() {
//
//            public void run() {
//                new ModificacionTasacionGarantia().setVisible(true);
//            }
//        });
//    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnActualizarModTasa;
    private javax.swing.JButton btnAutoModTasa;
    private javax.swing.JButton btnCDPModTasa;
    private javax.swing.JButton btnHipoModTASA;
    private javax.swing.JButton btnMenuPrincipal;
    private javax.swing.JButton btnWarraModTasa;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JCheckBox chkAutoModTasa;
    private javax.swing.JCheckBox chkCDPModTasa;
    private javax.swing.JCheckBox chkHipoModTasa;
    private javax.swing.JCheckBox chkWarraModTasa;
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JLabel lblDescripcion;
    private javax.swing.JLabel lblIngresoGaraAuto;
    private javax.swing.JLabel lblLogo;
    private javax.swing.JPanel pnlDatosPersoGara1;
    private javax.swing.JPanel pnlDescripGarantia;
    private javax.swing.JTextField txtApMaternoTasa;
    private javax.swing.JTextField txtApPaternoTasa;
    private javax.swing.JTextField txtApellMatModTasa;
    private javax.swing.JTextField txtApellPatModTasa;
    private javax.swing.JTextField txtAutoModTasa;
    private javax.swing.JTextField txtAvaluoModSeg;
    private javax.swing.JTextField txtCDPModiTasa;
    private javax.swing.JTextArea txtDescripcionModTasa;
    private javax.swing.JTextField txtFechaUltimaTasacion;
    private javax.swing.JTextField txtHipoModTasa;
    private javax.swing.JTextField txtMontoCubModTasa;
    private javax.swing.JTextField txtMontoResModTasa;
    private javax.swing.JTextField txtNomTasaModTasa;
    private javax.swing.JTextField txtNombreModTasa;
    private javax.swing.JTextArea txtOtroComentarioModTasa;
    private javax.swing.JTextField txtRutModTasa;
    private javax.swing.JTextField txtValoLiqModSeg;
    private javax.swing.JTextField txtValorComModTasa;
    private javax.swing.JTextField txtValorContModSeg;
    private javax.swing.JTextField txtValorModiTasa;
    private javax.swing.JTextField txtWarraModTasa;
    // End of variables declaration//GEN-END:variables

    private void limpiar2() {
        this.txtRutModTasa.setText(null);
//        this.txtFolioGarModTasa.setText(null);
        this.txtApellPatModTasa.setText(null);
        this.txtApellMatModTasa.setText(null);
        this.txtNombreModTasa.setText(null);
        this.txtDescripcionModTasa.setText(null);
        this.txtOtroComentarioModTasa.setText(null);
        this.txtValoLiqModSeg.setText(null);
        this.txtValorComModTasa.setText(null);
        this.txtValorContModSeg.setText(null);
        this.txtValorModiTasa.setText(null);
        this.txtAvaluoModSeg.setText(null);
        this.txtMontoCubModTasa.setText(null);
        this.txtMontoResModTasa.setText(null);
        this.txtNomTasaModTasa.setText(null);
        this.txtApMaternoTasa.setText(null);
        this.txtApPaternoTasa.setText(null);
        this.txtFechaUltimaTasacion.setText(null);
        this.btnActualizarModTasa.setVisible(false);
    }
}
